<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>楚天名医</title>
</head>
<body>
    <script src="js/mui.min.js"></script>
    <script type="text/javascript" charset="utf-8">
        mui.plusReady(function() {
            // 仅支持竖屏显示
            plus.screen.lockOrientation("portrait-primary");

            //跳转到main页面
            var first = plus.storage.getItem("IsFrist") || false;
            // var firstLogin = plus.storage.setItem("IsFristLogin","true");
            if (first) {
                //跳转到main页面
                mui.openWindow({
                    url: "page/main/main.html",
                    id: "main.html",
                    waiting: {
                        autoShow: false
                    }
                });
            } else {
                //加载app动画
                mui.openWindow({
                    url: "page/login/login.html",
                    id: "login",
                    waiting: {
                        autoShow: false
                    }
                });
            }
        });
    </script>
</body>
</html>